<%@ page import="com.model.User" %>
<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查询学生信息</title>
</head>
<body>
<h3>全部学生的信息</h3>
<hr>
<table border="1">
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>成绩</th>
    </tr>
    <%
        for (User displayedUser : (ArrayList<User>) request.getAttribute("displayedUsers")) {
            out.println("        <tr>\n" +
                    "            <td>" + displayedUser.getId() + "</td>\n" +
                    "            <td>" + displayedUser.getUsername() + "</td>\n" +
                    "            <td>" + displayedUser.getScore() + "</td>\n" +
                    "        </tr>");
        }
    %>
</table>
<hr>
<p>
    <a href="dealStudentInfo.jsp">返回</a>
</p>
</body>
</html>
